import request from '../util/request.js'
const baseUrl = "address/"
export function getAddressList(){
	return request.get(baseUrl+"list",{},{noAuth:false})
}

export function deleteAddress(data){
	return request.delete(baseUrl+"delete",data,{noAuth:false})
}

export function addAddress(data){
	return request.put(baseUrl+"add",data,{noAuth:false})
}

export function updateAddress(data){
	return request.put(baseUrl+"update",data,{noAuth:false})
}

export function detailAddress(data){
	return request.get(baseUrl+"detail",data,{noAuth:false})
}

export function defaultAddress(){
	return request.get(baseUrl+"default",{},{noAuth:false})
}